home *** CD-ROM | disk | FTP | other *** search
/ Champak 106 / Vol 106.iso / games / scorched.swf / scripts / frame_116 / DoAction_17.as < prev    next >
Encoding:
Text File  |  2010-04-12  |  679 b   |  33 lines

  1. function windchange()
  2. {
  3.    var _loc1_ = this;
  4.    a = random(5);
  5.    if(a == 1 || wind == undefined)
  6.    {
  7.       wind = random(16) - 8;
  8.       windreport = Math.abs(wind);
  9.       if(wind == 0)
  10.       {
  11.          _loc1_.windmarker.gotoAndStop(2);
  12.          windsoundplaying = 0;
  13.       }
  14.       else
  15.       {
  16.          _loc1_.windmarker._alpha = 100;
  17.          _loc1_.windmarker.gotoAndStop(1);
  18.          if(windsoundplaying == 0)
  19.          {
  20.          }
  21.       }
  22.       if(wind > 0)
  23.       {
  24.          _loc1_.windmarker.windarrow._xscale = 100;
  25.       }
  26.       else
  27.       {
  28.          _loc1_.windmarker.windarrow._xscale = -100;
  29.       }
  30.    }
  31.    windamount = wind / 50;
  32. }
  33.